Skip to content

chore: route all agent gh through the bot + add /setup-orchestrator - #20

Merged
robercano-ghbot merged 1 commit into
mainfrom
chore/bot-identity-and-setup-orchestrator
Jul 1, 2026
Merged

chore: route all agent gh through the bot + add /setup-orchestrator#20
robercano-ghbot merged 1 commit into
mainfrom
chore/bot-identity-and-setup-orchestrator

Conversation

@robercano-ghbot

Copy link
Copy Markdown
Collaborator

What

Two related hardening/onboarding changes:

  1. Route all gh through the bot identity. Every orchestrator/agent GitHub call now goes through .claude/scripts/bot-gh.sh (never bare gh); only git commits/pushes stay as the owner so the owner can still approve bot PRs.

    • orchestrator.md: rule broadened to all gh (reads + writes), and told to pass the rule to workers.
    • implementer.md, reviewer.md, test-runner.md: each gets a "GitHub identity (hard rule)" section.
    • Loop scripts notify-poll.sh, merge-ready.sh, pr-feedback.sh: shim gh -> bot-gh.sh. Merges now run as the bot; the merge gate is still the owner's APPROVED review.
    • bot-gh.sh: header comment updated to the broadened policy.
  2. New /setup-orchestrator command — interactive full onboarding that brings a fresh project to a working autonomous state: interview → write gates.json + CLAUDE.md → gitignore hygiene → create module:* labels → verify the bot → confirm CI gates → offer to arm /pr-loop → offer /harden (last, with restart sequencing). Non-blocking warn-then-ask if the project is already configured.

Why

Notes

  • Commits are unsigned (sandbox can't reach the SSH signing key), matching the reDeploy loop's practice.
  • Does not touch .claude/settings.json or generic behavior beyond the identity rules.

🤖 Generated with Claude Code

https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K

…p-orchestrator

- Agents pinned to bot via bot-gh.sh (orchestrator broadened to ALL gh;
  implementer/reviewer/test-runner get GitHub-identity rules).
- Loop scripts (notify-poll, merge-ready, pr-feedback) shim gh -> bot-gh.sh;
  merge runs as the bot, gate is still the owner's APPROVED review.
- bot-gh.sh header updated to the broadened "all gh via bot" policy.
- New /setup-orchestrator command: interactive full onboarding (adapter, gitignore,
  module:* labels, bot verify, CI gates, arm /pr-loop, offer /harden) with a
  non-blocking warn-then-ask on re-runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K
@robercano-ghbot
robercano-ghbot merged commit 9ee63e5 into main Jul 1, 2026
6 checks passed
@robercano-ghbot
robercano-ghbot deleted the chore/bot-identity-and-setup-orchestrator branch July 1, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants